package com.zego.wawaji.ui.view.adDialog.bean;

import com.zego.wawaji.base.data.BaseData;

import org.json.JSONArray;

import java.util.ArrayList;
import java.util.List;

/**
 * 广告列表
 * Created by Su on 2017/12/29.
 */
public class AdInfoList extends BaseData {
    private List<AdInfo> adInfoList = new ArrayList<>();

    @Override
    public void parseJson(String jsonStr) {
        JSONArray jsonArray = getJsonArray(jsonStr);
        this.adInfoList = (List<AdInfo>) getBaseDataList(jsonArray, AdInfo.class);
    }

    public List<AdInfo> getAdInfoList() {
        return adInfoList;
    }
}
